package com.example.planete_bb;




import com.example.dao.PlaneteDao;
import com.example.model.Planete;

import android.os.Bundle;
import android.app.Activity;
import android.database.sqlite.SQLiteDatabase;
import android.view.Menu;

public class Frame extends Activity {
    private SQLiteDatabase db;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activityframe);
        Planete p = new Planete();
        p.setNom("terre");
        p.setTaille(25000);
        p.setDistanceTerre(896);
        PlaneteDao.addPlanete(p);
        
        
        
        
        
        
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.frame, menu);
        return true;
    }
    
}
